
<script>
import { h, onMounted } from '@vue/runtime-core'
import { useRoute, useRouter } from 'vue-router'
export default {

  setup () {
    const route = useRoute()
    const router = useRouter()
    const { params, query } = route
    const { path } = params
    onMounted(() => {
      console.log('params', params)

      router.replace({ path: '/' + path, query })
    })
    return () => h('div')
  },
}
</script>
